#include<bits/stdc++.h>
using namespace std;

int main()
{
	int cnt=0;
	while(1)
	{
		//system("data.exe");system("test.exe");system("baoli.exe");
		//if(system("fc life.out baoli.out"))break;
		if(system("fc stone3.out stone.out"))break;
		cout<<++cnt<<endl;
	}
}
